<?php

include './app/dao/conecta_mysqli.php';
include './app/dao/model_cliente.php';

$string = 'daniel\ndaniel';

echo "legth = ".  strlen("$string");


?>

<body>
    <form method="post">
        <textarea name="textarea"><?php if(isset($_POST["textarea"])) echo $_POST["textarea"] ?></textarea>
        <input type="submit"/>
    </form>
    <?php 
        if(isset($_POST["textarea"]))
            echo "quatidade caracteres text area= ".strlen(strip_tags ($_POST['textarea']));
        else
            echo "quatidade caracteres text area= 0";
                    ?>
    <?php 
    $texto = $_POST['textarea'];
    echo "<br/>";
    print_r(strlen(str_replace("\r", "", $texto)));

    print_r($_POST);
    ?>

</body>
